<div class="layui-row layui-col-space10">
    <div class="layui-col-md6">
        <div class="layui-card">
            <div class="layui-card-header">
                {{ __('wechat.app_config') }}
            </div>
            <div class="layui-card-body">
                <form class="layui-form">
                    <input type="hidden" name="qrcode" value="{{ setting.qrcode|default('') }}">
                    <div class="layui-form-item">
                        <label class="layui-form-label">
                            {{ __('wechat.app_qrcode') }}
                            <span class="layui-font-red">*</span>
                        </label>
                        <div class="layui-input-block">
                            <div class="layui-upload-drag" style="display: block;" id="upload-wechat-qrcode">
                                <i class="layui-icon layui-icon-upload"></i>
                                <div>{{ __('upload.drag_tip') }}</div>
                                <div class="{% if not setting.qrcode %}layui-hide{% endif %}"
                                     id="wechat-qrcode-preview">
                                    <hr>
                                    <img src="{{ setting.qrcode|default('') }}" alt=""
                                         style="max-width: 100%">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">
                            {{ __('wechat.app_name') }}
                            <span class="layui-font-red">*</span>
                        </label>
                        <div class="layui-input-block">
                            <input type="text"
                                   name="app_name"
                                   value="{{ setting.app_name|default('') }}"
                                   class="layui-input">
                            <div class="layui-word-aux">
                                {{ __('wechat.app_name_tip') }}
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">
                            {{ __('wechat.app_id') }}
                            <span class="layui-font-red">*</span>
                        </label>
                        <div class="layui-input-block">
                            <input type="text"
                                   name="app_id"
                                   value="{{ setting.app_id|default('') }}"
                                   class="layui-input">
                            <div class="layui-word-aux">
                                {{ __('wechat.app_id_tip') }}
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">
                            {{ __('wechat.app_secret') }}
                            <span class="layui-font-red">*</span>
                        </label>
                        <div class="layui-input-block">
                            <input type="password"
                                   name="app_secret"
                                   value="{{ setting.app_secret|default('') }}"
                                   class="layui-input">
                            <div class="layui-word-aux">
                                {{ __('wechat.app_secret_tip') }}
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">
                            {{ __('wechat.token') }}
                            <span class="layui-font-red">*</span>
                        </label>
                        <div class="layui-input-block">
                            <input type="password"
                                   name="token"
                                   max="10000"
                                   value="{{ setting.token|default('') }}"
                                   class="layui-input">
                            <div class="layui-word-aux">
                                {{ __('wechat.token_tip') }}
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">{{ __('wechat.remake') }}</label>
                        <div class="layui-input-block">
                            <input type="text"
                                   name="remake"
                                   value="{{ setting.remake|default('') }}"
                                   class="layui-input">
                            <div class="layui-word-aux">
                                {{ __('wechat.remake_tip') }}
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label"></label>
                        <button type="button" class="layui-btn layui-btn-normal layui-btn-sm"
                                lay-submit
                                lay-filter="wechat">
                            {{ __('btn.save') }}
                        </button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>